package com.liukai.todo_android.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author ：liukai
 * @date ：Created in 2021/8/11 11:38 上午
 * @description：todo实体类
 * @modified By：
 * @version: $
 */
public class Schedule implements Serializable {
    /**
     * id
     */
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 标题
     */
    private String title;
    /**
     * 类型id
     */
    private Long scheduleTypeId;
    /**
     * 描述信息
     */
    private String description;
    /**
     * 附件地址
     */
    private String attachment;
    /**
     * todo开始时间
     */
    private LocalDateTime gmtStarted;
    /**
     * 完成时间
     */
    private LocalDateTime gmtFinished;
    /**
     * 计划用时
     */
    private Integer consumePlanning;
    /**
     * 总共用时
     */
    private Integer consumeTotal;
    /**
     * 是否完成（0未完成，1已完成）
     */
    private Integer finished;
    /**
     * 总结
     */
    private String summary;
    /**
     * 0默认,1正计时,2倒计时
     */
    private Integer timingType;
    /**
     * 添加时间
     */
    private LocalDateTime gmtCreate;
    /**
     * 修改时间
     */
    private LocalDateTime gmtModified;
    /**
     * 是否删除
     */
    private Integer deleted;

    public Long getId() {
        return id;
    }

    public Schedule setId(Long id) {
        this.id = id;
        return this;
    }

    public Long getUserId() {
        return userId;
    }

    public Schedule setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public Schedule setTitle(String title) {
        this.title = title;
        return this;
    }

    public Long getScheduleTypeId() {
        return scheduleTypeId;
    }

    public Schedule setScheduleTypeId(Long scheduleTypeId) {
        this.scheduleTypeId = scheduleTypeId;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public Schedule setDescription(String description) {
        this.description = description;
        return this;
    }

    public String getAttachment() {
        return attachment;
    }

    public Schedule setAttachment(String attachment) {
        this.attachment = attachment;
        return this;
    }

    public LocalDateTime getGmtStarted() {
        return gmtStarted;
    }

    public Schedule setGmtStarted(LocalDateTime gmtStarted) {
        this.gmtStarted = gmtStarted;
        return this;
    }

    public LocalDateTime getGmtFinished() {
        return gmtFinished;
    }

    public Schedule setGmtFinished(LocalDateTime gmtFinished) {
        this.gmtFinished = gmtFinished;
        return this;
    }

    public Integer getConsumePlanning() {
        return consumePlanning;
    }

    public Schedule setConsumePlanning(Integer consumePlanning) {
        this.consumePlanning = consumePlanning;
        return this;
    }

    public Integer getConsumeTotal() {
        return consumeTotal;
    }

    public Schedule setConsumeTotal(Integer consumeTotal) {
        this.consumeTotal = consumeTotal;
        return this;
    }

    public Integer getFinished() {
        return finished;
    }

    public Schedule setFinished(Integer finished) {
        this.finished = finished;
        return this;
    }

    public String getSummary() {
        return summary;
    }

    public Schedule setSummary(String summary) {
        this.summary = summary;
        return this;
    }

    public Integer getTimingType() {
        return timingType;
    }

    public Schedule setTimingType(Integer timingType) {
        this.timingType = timingType;
        return this;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public Schedule setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
        return this;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public Schedule setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
        return this;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public Schedule setDeleted(Integer deleted) {
        this.deleted = deleted;
        return this;
    }

    @Override
    public String toString() {
        return "Schedule{" +
                "id=" + id +
                ", userId=" + userId +
                ", title='" + title + '\'' +
                ", scheduleTypeId=" + scheduleTypeId +
                ", description='" + description + '\'' +
                ", attachment='" + attachment + '\'' +
                ", gmtStarted=" + gmtStarted +
                ", gmtFinished=" + gmtFinished +
                ", consumePlanning=" + consumePlanning +
                ", consumeTotal=" + consumeTotal +
                ", finished=" + finished +
                ", summary='" + summary + '\'' +
                ", timingType=" + timingType +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", deleted=" + deleted +
                '}';
    }
}
